<template>
    <div>
        <inject-comp></inject-comp>
    </div>
</template>

<script lang='ts'>
import InjectComp from '@/components/InjectComp.vue';
import {defineComponent, ref, reactive, toRefs, computed, provide} from 'vue'
export default defineComponent({
  components: { InjectComp },
  setup(){
    let sendChildParams = () => {
      let text = ref("hello world")
      provide("message",text)
    }
    let text = ref("hello world")
    provide("message",text)
    
    return{
      sendChildParams,
    
    }
  },
});
</script>

<style scoped >

</style>
